﻿#region Using directives

using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;

#endregion

namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.SelectsGetPlanPrice
{
	[Serializable]
	public partial class SelectsGetPlanPriceModel : UIModel
	{
		#region Constructor
		public SelectsGetPlanPriceModel() : base("SelectsGetPlanPrice")
		{
			InitClass();
			this.SetResourceInfo("db6f4b7f-0f14-409c-a92d-21c0b85ce37d");
            try{
			    AfterInitModel();
            }catch(Exception exception){
              IUIModel model = this;
		      this.ErrorMessage.SetErrorMessage(ref model,exception);
			}
		}

		//just for Clone 
		private SelectsGetPlanPriceModel(bool isInit) : base("SelectsGetPlanPrice")
		{}
		protected override IUIModel CreateCloneInstance()
		{
			return new SelectsGetPlanPriceModel(false);
		}
		#endregion
		#region member
		#region views
		private SelectsGetPlanPriceView viewSelectsGetPlanPrice;			
		#endregion
		
		#region links
		#endregion
		
		#region properties
		#endregion
		#endregion

		#region property
		public SelectsGetPlanPriceView SelectsGetPlanPrice
		{
			get { return (SelectsGetPlanPriceView)this["SelectsGetPlanPrice"]; }
		}
		
		#region RealViews
		#endregion
		
	
		#endregion

		#region function
		private void InitClass()
		{
			this.viewSelectsGetPlanPrice = new SelectsGetPlanPriceView(this);
			this.viewSelectsGetPlanPrice.SetResourceInfo("d599a5d5-2bff-4f9d-835e-b80e296c872b");
			this.Views.Add(this.viewSelectsGetPlanPrice);			

			
		}

		public override string AssemblyName
		{
			get { return "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI"; }
		}
		
		#endregion
		private void OnValidate_DefualtImpl()
    {
    }

	}


	[Serializable]
	public partial class SelectsGetPlanPriceView : UIView
	{
		#region Constructor
		public SelectsGetPlanPriceView(IUIModel model) : base(model,"SelectsGetPlanPrice","", true)
		{
			InitClass();
		}
		//构造空实例,不进行初始化.目前为Clone使用.
		private SelectsGetPlanPriceView():base(null,"SelectsGetPlanPrice","", true)
		{
		}
		protected override IUIView CreateCloneInstance()
		{
			return new SelectsGetPlanPriceView();
		}
		#endregion

		#region fiels property filter
		public IUIField FieldID
		{
			get { return this.Fields["ID"]; }
		}
		public IUIField FieldCreatedOn
		{
			get { return this.Fields["CreatedOn"]; }
		}
		public IUIField FieldCreatedBy
		{
			get { return this.Fields["CreatedBy"]; }
		}
		public IUIField FieldModifiedOn
		{
			get { return this.Fields["ModifiedOn"]; }
		}
		public IUIField FieldModifiedBy
		{
			get { return this.Fields["ModifiedBy"]; }
		}
		public IUIField FieldSysVersion
		{
			get { return this.Fields["SysVersion"]; }
		}
		public IUIField FieldProdOps
		{
			get { return this.Fields["ProdOps"]; }
		}
		public IUIField FieldAccountingPeriod
		{
			get { return this.Fields["AccountingPeriod"]; }
		}


		[Obsolete("请使用CurrentFilter属性，这个方法有可能会导致强弱类型转换出错")]
		public SelectsGetPlanPriceDefaultFilterFilter DefaultFilter
		{
			get { return (SelectsGetPlanPriceDefaultFilterFilter)this.CurrentFilter; }
		}
		#endregion

		#region Init
		private void InitClass()
		{
			UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","7400354d-a8da-4d22-afe4-4bbf46b32f00");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","6bcf8383-8f67-49c6-b3cc-8dce85f1d0d5");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","72966489-aaa5-4872-a836-e710518e9646");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","7f3a39cd-89c2-413f-86ea-9fc0b6459a3c");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","1b8dac9d-4920-4088-bb10-34de3a2bd8ff");
			UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","84127552-4b3f-4938-8ff3-cd1c78a71c74");
			UIModelRuntimeFactory.AddNewUIField(this,"ProdOps", typeof(Int64), false,"","UFIDA.U9.CBO.HR.Department.Department", "", false,false, false, "",false,(UIFieldType)4,"3410e657-4f0f-47a9-9cf1-d1c421c116a8","aeab75fe-af05-4a1f-937c-f068e8edcffa");
			UIModelRuntimeFactory.AddNewUIField(this,"AccountingPeriod", typeof(Int64), false,"","UFIDA.U9.Base.Account.AccountPeriod", "", false,false, false, "",false,(UIFieldType)4,"7bf5f98b-4b43-45b2-95b3-d52dd8cb95d2","59c8a775-9b8d-4b66-9425-7469f522aff7");


			this.CurrentFilter = new SelectsGetPlanPriceDefaultFilterFilter(this);
		}
		#endregion
		
		#region override method
		protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
		{
			return new SelectsGetPlanPriceRecord(builder);
		}
		#endregion

		#region new method
		public new SelectsGetPlanPriceRecord FocusedRecord
		{
			get { return (SelectsGetPlanPriceRecord)base.FocusedRecord ; }
			set { base.FocusedRecord = value ; }
		}
		public new SelectsGetPlanPriceRecord AddNewUIRecord()
		{	
			return (SelectsGetPlanPriceRecord)base.AddNewUIRecord();
		}
		public new SelectsGetPlanPriceRecord NewUIRecord()
		{	
			return (SelectsGetPlanPriceRecord)base.NewUIRecord();
		}
		#endregion 

	}

	[Serializable]
	public class SelectsGetPlanPriceRecord : UIRecord
	{
		#region Constructor
		public SelectsGetPlanPriceRecord(IUIRecordBuilder builder):base(builder)
		{
		}
		private SelectsGetPlanPriceView uiviewSelectsGetPlanPrice
		{
			get { return (SelectsGetPlanPriceView)this.ContainerView; }
		}
		protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
		{
			return new SelectsGetPlanPriceRecord(builder);
		}
		#endregion

		#region property
		
		
		public  Int64 ID
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldID] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewSelectsGetPlanPrice.FieldID);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldID] = value;
			}
		}
		
		
		public  DateTime CreatedOn
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldCreatedOn] ;
				//return (DateTime)value;
				return GetValue<DateTime>(this.uiviewSelectsGetPlanPrice.FieldCreatedOn);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldCreatedOn] = value;
			}
		}
		
		
		public  String CreatedBy
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldCreatedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewSelectsGetPlanPrice.FieldCreatedBy);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldCreatedBy] = value;
			}
		}
		
		
		public  DateTime ModifiedOn
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldModifiedOn] ;
				//return (DateTime)value;
				return GetValue<DateTime>(this.uiviewSelectsGetPlanPrice.FieldModifiedOn);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldModifiedOn] = value;
			}
		}
		
		
		public  String ModifiedBy
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldModifiedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewSelectsGetPlanPrice.FieldModifiedBy);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldModifiedBy] = value;
			}
		}
		
		
		public new Int64 SysVersion
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldSysVersion] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewSelectsGetPlanPrice.FieldSysVersion);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldSysVersion] = value;
			}
		}
		
		
		public  Int64 ProdOps
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldProdOps] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewSelectsGetPlanPrice.FieldProdOps);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldProdOps] = value;
			}
		}
		
		
		public  Int64 AccountingPeriod
		{
			get{
				//object value = this[this.uiviewSelectsGetPlanPrice.FieldAccountingPeriod] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewSelectsGetPlanPrice.FieldAccountingPeriod);
			}
			set{
				this[this.uiviewSelectsGetPlanPrice.FieldAccountingPeriod] = value;
			}
		}
		#endregion
	}
	
	[Serializable]
	public class SelectsGetPlanPriceDefaultFilterFilter : UIFilter
	{
		#region Constructor
		public SelectsGetPlanPriceDefaultFilterFilter(IUIView view) 
			: base("DefaultFilter",view,@"",@"")
		{
			InitClass();
		}
		//for Clone Constructor
		private SelectsGetPlanPriceDefaultFilterFilter()
			: base("DefaultFilter",null,"","")
		{}
		protected override IUIFilter CreateCloneInstance()
		{
			return new SelectsGetPlanPriceDefaultFilterFilter();
		}
		#endregion

		#region property
		#endregion
		
		#region function
		private void InitClass()
		{
		}
		#endregion

	}



}